package com.oocl.crm.command.receiver;

import com.oocl.crm.command.BaseReceiver;
import com.oocl.crm.exception.CrmException;

public class SortReceiver extends BaseReceiver {

	public SortReceiver(String[] commandSplit) {
		super(commandSplit);
	}

	@Override
	public String action() throws CrmException {
		return "ID\tName\tSex\tBirthday\tAddress\tPhone\n" + service.sortCustomerBy(commandSplit[1]);
	}

}
